package com.xiangqian.controller;

import com.xiangqian.entity.User;
import com.xiangqian.service.AdminUserService;
import com.xiangqian.service.NormalUserService;

public class UserController {

    private NormalUserService normalUserService;

    private AdminUserService adminUserService;

    /**
     * 普通用户操作
     */
    public User getNormalUser(Integer userId) {
        return normalUserService.getUser(userId);
    }

    /**
     * 管理员用户操作
     */
    public User getAdminUser(Integer userId) {
        return adminUserService.getUser(userId);
    }
}
